<?php
defined('IN_ADMIN') or exit('No permission resources.');
$pc_hash = $_SESSION['pc_hash'];
foreach($datas as $_value) {
	echo '<li> <a href="#" title="'.L('expand_or_contract').'"><i class="fa fa-lg fa-fw '.L($_value['name'].'_icon').'"></i><span class="menu-item-parent" >'.L($_value['name']).'</span></a>';
	echo '<ul>';
	$sub_array = admin::admin_menu($_value['id']);
	foreach($sub_array as $_key=>$_m) {
		//附加参数
		$data = $_m['data'] ? '&'.$_m['data'] : '';
		if($menuid == 5) { //左侧菜单不显示选中状态
			$classname = 'class="sub_menu"';
		} else {
			$classname = 'class="sub_menu"';
		}
        $mp = 'm';
        if(!empty($_m['p']) and $_m['p']=="projects"){
            $mp = 'p';
        }
		echo '<li id="_MP'.$_m['id'].'" '.$classname.'><a href="javascript:_MP('.$_m['id'].',\'?'.$mp.'='.$_m['m'].'&c='.$_m['c'].'&a='.$_m['a'].$data.'\');" hidefocus="true" style="outline:none;">'.L($_m['name']).'</a></li>';
	}
	echo '</ul></li>';
}
?>